package com.ruoyi.cms.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.cms.mapper.CmsWzkfBannerMapper;
import com.ruoyi.cms.domain.CmsWzkfBanner;
import com.ruoyi.cms.service.ICmsWzkfBannerService;

/**
 * 网站开发-bannerService业务层处理
 * 
 * @author ruoyi
 * @date 2022-09-02
 */
@Service
public class CmsWzkfBannerServiceImpl implements ICmsWzkfBannerService 
{
    @Autowired
    private CmsWzkfBannerMapper cmsWzkfBannerMapper;

    /**
     * 查询网站开发-banner
     * 
     * @param id 网站开发-banner主键
     * @return 网站开发-banner
     */
    @Override
    public CmsWzkfBanner selectCmsWzkfBannerById(Long id)
    {
        return cmsWzkfBannerMapper.selectCmsWzkfBannerById(id);
    }

    /**
     * 查询网站开发-banner列表
     * 
     * @param cmsWzkfBanner 网站开发-banner
     * @return 网站开发-banner
     */
    @Override
    public List<CmsWzkfBanner> selectCmsWzkfBannerList(CmsWzkfBanner cmsWzkfBanner)
    {
        return cmsWzkfBannerMapper.selectCmsWzkfBannerList(cmsWzkfBanner);
    }

    /**
     * 新增网站开发-banner
     * 
     * @param cmsWzkfBanner 网站开发-banner
     * @return 结果
     */
    @Override
    public int insertCmsWzkfBanner(CmsWzkfBanner cmsWzkfBanner)
    {
        return cmsWzkfBannerMapper.insertCmsWzkfBanner(cmsWzkfBanner);
    }

    /**
     * 修改网站开发-banner
     * 
     * @param cmsWzkfBanner 网站开发-banner
     * @return 结果
     */
    @Override
    public int updateCmsWzkfBanner(CmsWzkfBanner cmsWzkfBanner)
    {
        return cmsWzkfBannerMapper.updateCmsWzkfBanner(cmsWzkfBanner);
    }

    /**
     * 批量删除网站开发-banner
     * 
     * @param ids 需要删除的网站开发-banner主键
     * @return 结果
     */
    @Override
    public int deleteCmsWzkfBannerByIds(Long[] ids)
    {
        return cmsWzkfBannerMapper.deleteCmsWzkfBannerByIds(ids);
    }

    /**
     * 删除网站开发-banner信息
     * 
     * @param id 网站开发-banner主键
     * @return 结果
     */
    @Override
    public int deleteCmsWzkfBannerById(Long id)
    {
        return cmsWzkfBannerMapper.deleteCmsWzkfBannerById(id);
    }
}
